// 公共管理
import axios from './request'

// 新闻管理列表
export const managerNewGet = (params) =>
  axios({
    url: '/v1/manager/new',
    method: 'get',
    params
  })

// 新闻管理列表 详情
export const managerNewIdGet = (params) =>
  axios({
    url: `/v1/manager/new/${params}`,
    method: 'get',
  })

// 新闻管理新增修改
export const managerNewPost = (params) =>
  axios({
    url: '/v1/manager/new',
    method: 'post',
    params
  })

// 新闻管理 删除
export const managerNewDelete = (params) =>
  axios({
    url: '/v1/manager/new/' + params,
    method: 'delete'
  })

// sec 文件夹
export const managerSecGet = (params) =>
  axios({
    url: `/v1/manager/sec`,
    method: 'get',
    params
  })

// sec 文件夹 修改
export const managerSecPost = (params) =>
  axios({
    url: `/v1/manager/sec`,
    method: 'post',
    params
  })

// sec 文件夹 删除
export const managerSecDelete = (params) =>
  axios({
    url: `/v1/manager/sec/${params}`,
    method: 'delete',
  })

// 联系我们
export const relationGet = (params) =>
  axios({
    url: `/v1/manager/contact`,
    method: 'get',
    params
  })


//------------------------------------------
// 管理员列表
export const managerListGet = (params) =>
  axios({
    url: `/v1/manager/manager`,
    method: 'get',
    params
  })

// 管理员列表 新增修改
export const managerListPost = (params) =>
  axios({
    url: `/v1/manager/manager`,
    method: 'post',
    params
  })


// 管理员列表 删除
export const managerListDelete = (params) =>
  axios({
    url: `/v1/manager/manager/${params}`,
    method: 'delete',
  })


// 系统设置
export const systemGet = (params) =>
  axios({
    url: `/v1/manager/system`,
    method: 'get',
    params
  })


// 系统设置 新增
export const systemPost = (params) =>
  axios({
    url: `/v1/manager/system`,
    method: 'Post',
    params
  })

// 系统设置
export const systemDelete = (params) =>
  axios({
    url: `/v1/manager/system/${params}`,
    method: 'delete'
  })
